﻿#region Imports
using System;
using System.Drawing;
using System.Windows.Forms;
using CheckerWin;
#endregion

namespace OptionChecker
{
    public partial class frmOption : Form
    {
        #region Declarations
        private const string sugg = "&Suggested";
        private const string cust = "&Custom";
        #endregion

        public frmOption()
        {
            InitializeComponent();

            uclOptionCheckerWPF1.CheckerHeight = 200;
            uclOptionCheckerWPF1.CheckeWidth = 200;
            uclOptionCheckerWPF1.OptionY = sugg;
            uclOptionCheckerWPF1.OptionN = cust;

            uclOptionCheckerWin1.InitControls(ContentAlignment.MiddleRight, sugg, cust);
            uclOptionCheckerWin1.ValueChanged += new EventHandler(ABCD);
        }

        private void ABCD(object sender, EventArgs e)
        {
            //uclOptionCheckerWin1.TogglValues();
            //MessageBox.Show(((CheckBox)sender).Checked.ToString(), "Event testing :: " + uclOptionCheckerWin1.EventCallInit);
            MessageBox.Show(((bool)sender).ToString(), "Event testing..");
        }

        private void frmOption_Click(object sender, EventArgs e)
        {
            uclOptionCheckerWin1.CheckerValue = !uclOptionCheckerWin1.CheckerValue;
        }
    }
}
